 package com.lj.mcore.entity;

 import com.lj.mcore.domain.IdEntity;
 import jakarta.persistence.*;

 import java.util.ArrayList;
 import java.util.List;

 @Entity
 @Table(name="shopping_accessory")
 public class Accessory extends IdEntity
 {
   private String name;
   private String path;
   private float size;
   private int width;
   private int height;
   private String ext;
   private String info;
   private String time;

   private String fileName;
 
   @ManyToOne(fetch= FetchType.LAZY)
   private User user;
 
   @ManyToOne(fetch=FetchType.LAZY)
   private Album album;
 
   @OneToOne(mappedBy="album_cover", fetch=FetchType.LAZY)
   private Album cover_album;
 
   @ManyToOne(fetch=FetchType.LAZY)
   private SysConfig config;
 
   @OneToMany(mappedBy="goods_main_photo")
   private List<Goods> goods_main_list = new ArrayList();
 
   @ManyToMany(mappedBy="goods_photos")
   private List<Goods> goods_list = new ArrayList();

   public String getFileName() {
     return fileName;
   }

   public void setFileName(String fileName) {
     this.fileName = fileName;
   }

   public String getTime() {
     return time;
   }

   public void setTime(String time) {
     this.time = time;
   }

   public List<Goods> getGoods_main_list() {
     return this.goods_main_list;
   }
 
   public void setGoods_main_list(List<Goods> goods_main_list) {
     this.goods_main_list = goods_main_list;
   }
 
   public List<Goods> getGoods_list() {
     return this.goods_list;
   }
 
   public void setGoods_list(List<Goods> goods_list) {
     this.goods_list = goods_list;
   }
 
   public String getInfo() {
     return this.info;
   }
 
   public void setInfo(String info) {
     this.info = info;
   }
 
   public String getName() {
     return this.name;
   }
 
   public void setName(String name) {
     this.name = name;
   }
 
   public String getPath() {
     return this.path;
   }
 
   public void setPath(String path) {
     this.path = path;
   }
 
   public float getSize() {
     return this.size;
   }
 
   public void setSize(float size) {
     this.size = size;
   }
 
   public int getWidth() {
     return this.width;
   }
 
   public void setWidth(int width) {
     this.width = width;
   }
 
   public int getHeight() {
     return this.height;
   }
 
   public void setHeight(int height) {
     this.height = height;
   }
 
   public String getExt() {
     return this.ext;
   }
 
   public void setExt(String ext) {
     this.ext = ext;
   }
 
   public Album getAlbum() {
     return this.album;
   }
 
   public void setAlbum(Album album) {
     this.album = album;
   }
 
   public Album getCover_album() {
     return this.cover_album;
   }
 
   public void setCover_album(Album cover_album) {
     this.cover_album = cover_album;
   }

   public User getUser() {
     return user;
   }

   public void setUser(User user) {
     this.user = user;
   }

   public SysConfig getConfig() {
     return config;
   }

   public void setConfig(SysConfig config) {
     this.config = config;
   }
 }



 
 